#ifndef RECTANGLE_H
#define RECTANGLE_H

#include <vector>
#include "figurecontainer.h"

class Rectangle : public Figure
{
public:
    Rectangle();
    Rectangle(std::vector<double> &data);
    void setCoord(std::vector<double> &data);
    std::vector<double> getCoord();
    std::pair<double, double> centrePoint();
    void shift(double shiftX, double shiftY);
    void rotation(double rotAngle);
    void extansion(double extCoef);
    typeFigure type();
    std::string dataToString();

private:
    double x0;
    double y0;
    double x1;
    double y1;
    double angle;
};

#endif // RECTANGLE_H
